package ch7;
//飞机
public class Plane {
    private String name;
    private int weight, height;

    public Plane(String name, int weight, int height) {
        this.name = name;
        this.weight = weight;
        this.height = height;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getWeight() {
        return weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    public void takeOff() {
        System.out.println("起飞");
    }

    public void acceleration() {
        System.out.println("加速");
    }

    public void land() {
        System.out.println("降落");
    }
}
